package com.nit.lab.dto;

import com.nit.lab.model.SysUserEntity;

/**
 *
 * @author Shaury
 * @date 2017/10/9
 */
public class DtoUser {
    private Integer userId;
    private String userPicUrl;
    private String userName;
    private String userRealName;
    private String userPhone;
    private String userEmail;
    private String userCode;
    private String userSchool;
    private Integer actorId;
    private Integer userIntegral;
    private Double usedMoney;
    private Double userGold;
    private Integer isDelete;

    public DtoUser() {
    }

    public DtoUser(SysUserEntity sysUserEntity) {
        this.userId = sysUserEntity.getUserId();
        this.userName = sysUserEntity.getUserName();
        this.userRealName = sysUserEntity.getUserRealName();
        this.userPhone = sysUserEntity.getUserPhone();
        this.userEmail = sysUserEntity.getUserEmail();
        this.userCode = sysUserEntity.getUserCode();
        this.userSchool = sysUserEntity.getUserSchool();
        this.actorId = sysUserEntity.getActorId();
        this.userIntegral = sysUserEntity.getUserIntegral();
        this.usedMoney = sysUserEntity.getUsedMoney();
        this.userGold = sysUserEntity.getUserGold();
        this.isDelete = sysUserEntity.getIsDelete();
        this.userPicUrl = sysUserEntity.getUserPicUrl();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserPicUrl() {
        return userPicUrl;
    }

    public void setUserPicUrl(String userPicUrl) {
        this.userPicUrl = userPicUrl;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserRealName() {
        return userRealName;
    }

    public void setUserRealName(String userRealName) {
        this.userRealName = userRealName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getUserCode(String userCode) {
        return this.userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserSchool() {
        return userSchool;
    }

    public void setUserSchool(String userSchool) {
        this.userSchool = userSchool;
    }

    public Integer getActorId() {
        return actorId;
    }

    public void setActorId(Integer actorId) {
        this.actorId = actorId;
    }

    public Integer getUserIntegral() {
        return userIntegral;
    }

    public void setUserIntegral(Integer userIntegral) {
        this.userIntegral = userIntegral;
    }

    public Double getUsedMoney() {
        return usedMoney;
    }

    public void setUsedMoney(Double usedMoney) {
        this.usedMoney = usedMoney;
    }

    public Double getUserGold() {
        return userGold;
    }

    public void setUserGold(Double userGold) {
        this.userGold = userGold;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public String getUserCode() {
        return userCode;
    }

    public SysUserEntity toBEAN() {
        SysUserEntity sysUserEntity = new SysUserEntity();
        sysUserEntity.setUserId(userId);
        sysUserEntity.setUserPicUrl(userPicUrl);
        sysUserEntity.setUserName(userName);
        sysUserEntity.setUserRealName(userRealName);
        sysUserEntity.setUserPhone(userPhone);
        sysUserEntity.setUserEmail(userEmail);
        sysUserEntity.setUserCode(userCode);
        sysUserEntity.setUserSchool(userSchool);
        sysUserEntity.setActorId(3);
        sysUserEntity.setUserIntegral(userIntegral);
        sysUserEntity.setUsedMoney(usedMoney);
        sysUserEntity.setUserGold(userGold);
        sysUserEntity.setIsDelete(0);
        return sysUserEntity;
    }
}
